<template>
  <el-card class="card-container">
    <template #header>
      <div class="card-header">
        <span>{{ title }}</span>
        <slot name="right"></slot>
      </div>
    </template>
    <slot name="content"></slot>
  </el-card>
</template>

<script setup lang="ts">
const props = defineProps({
  title: {
    type: String,
    default: '',
  },
})
console.log(props)
</script>

<style scoped>
.card-container {
  width: 100%;
  min-height: 80vh;
}
.card-header {
  display: flex;
  justify-content: space-between;
}
</style>
